x86/HVM: use available linear->phys translations in REP MOVS/STOS handling
authorJan Beulich <jbeulich@suse.com>
Tue, 21 Jun 2016 10:06:58 +0000 (12:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Jun 2016 10:06:58 +0000 (12:06 +0200)
commit57a57465daaf8fb66d192ff98b8477524091e82c
tree50a1d8b61b5e346b649e7ac5abf2c9649d897c24
parent266b6539bf5671d8bad10900c79eb02d2cd49d15
x86/HVM: use available linear->phys translations in REP MOVS/STOS handling

If we have the translation result available already, we should also use
it here. In my tests with Linux guests this eliminates all calls to
hvmemul_linear_to_phys() from the STOS path and most from the MOVS one.

Also record the translation for re-use at least during response
processing.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c